package com.dao;

//import org.apache.catalina.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.AnnotationConfiguration;
import org.hibernate.tool.hbm2ddl.SchemaExport;

public class TestCountry {

	
	public static void main(String[] args) {
		AnnotationConfiguration config = new AnnotationConfiguration();
		config.addAnnotatedClass(Address.class);
		config.addAnnotatedClass(Business.class);
		config.configure("hibernate.cfg.xml");
		new SchemaExport(config).create(true, true);
		
		SessionFactory factory = config.buildSessionFactory();
		org.hibernate.Session session = factory.getCurrentSession();
		session.beginTransaction();
		
		

	}

}
